package com.jeesite.modules.ab.web;

import com.jeesite.common.config.Global;
import com.jeesite.common.web.BaseController;
import com.jeesite.modules.ab.entity.AbData;
import com.jeesite.modules.ab.service.AbDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "${frontPath}/data")
public class FDataController  extends BaseController {
    @Autowired
    private AbDataService abDataService;

    /**
     * 查询列表
     */
    @RequestMapping(value = "upload")
    @ResponseBody
    public String upload(AbData abData) {
        abDataService.save(abData);
        return renderResult(Global.TRUE, text("保存室温数据表成功！"));
    }
}
